import state from './state'
const mutations = {
    UpdateUserInfo(state,payload){
        state.userinfo = payload;
    },
    ClickDevstatus(state,payload){
        state.DevclickItem = payload;
    },
    updateHistorySearchItem(state,payload){
        state.historySearchItem = payload;
    },
    updateWarningSearchItem(state,payload){
        state.warningsearchitem = payload;
    },
    updateToken(state,payload){
        state.Token = payload;
    },
    updateLevel(state,payload){
        state.Level = payload;
    },
    updateTagRegisterStatus(state,payload){
        state.RegisterStatus = payload;
        console.log(payload)
    },
    updateAddTagInfo(state,payload){
        state.TagInfo = payload;
        sessionStorage.setItem('TagInfo', payload);
    },
    deviceimg(state,payload){
        state.img = payload;
    },
    deviceWarnning(state,payload){
        state.deviceinfo = payload;
    },
    searchforItem(state,payload){
        state.searchforItem = payload;
    }
}

export default mutations;